package com.gongpingjialoan.bean;

import java.io.Serializable;

/**
 * Created by Administrator on 2016/9/23.
 */
public class DealerModel implements Serializable {

    private String dealer_name;
    private String city;
    private String dealer_id;

    public String getDealer_name() {
        return dealer_name;
    }

    public void setDealer_name(String dealer_name) {
        this.dealer_name = dealer_name;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDealer_id() {
        return dealer_id;
    }

    public void setDealer_id(String dealer_id) {
        this.dealer_id = dealer_id;
    }

    @Override
    public int hashCode() {
        return dealer_name.hashCode();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o.getClass() == DealerModel.class) {
            DealerModel n = (DealerModel) o;
            return n.dealer_name.equals(dealer_name);
        }
        return false;
    }
}
